package com.security.common.enums;

/**
 * 请求结果码
 * @author tom
 * 2018年3月31日
 */
public enum ResultCodeEnums {
	SUCCESS("0000","成功"),
	FAILED("9999","失败"),
	APPLICATION_ERROR("9000","应用级错误"),
	VALIDATE_ERROR("9001","参数验证错误"),
	SERVICE_ERROR("9002","业务逻辑错误"),
	CACHE_ERROR("9003","缓存访问错误"),
	DAO_ERROR("9004","数据访问错误"),
	
	SSO_TOKEN_ERROR("1001","未授权或已过期"),
	SSO_PERMISSION_ERROR("1002","没有访问权限"),
	;
	private String code;
	private String desc;
	
	private ResultCodeEnums(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	
}
